import request from '@/utils/request'

// 查询部装正式排产计划列表
export function listAssemblyFormalSchedulingPlan(query) {
  return request({
    url: '/sales/assemblyFormalSchedulingPlan/list',
    method: 'get',
    params: query
  })
}

// 查询部装正式排产计划详细
export function getAssemblyFormalSchedulingPlan(id) {
  return request({
    url: '/sales/assemblyFormalSchedulingPlan/' + id,
    method: 'get'
  })
}

// 新增部装正式排产计划
export function addAssemblyFormalSchedulingPlan(data) {
  return request({
    url: '/sales/assemblyFormalSchedulingPlan',
    method: 'post',
    data: data
  })
}

// 修改部装正式排产计划
export function updateAssemblyFormalSchedulingPlan(data) {
  return request({
    url: '/sales/assemblyFormalSchedulingPlan',
    method: 'put',
    data: data
  })
}

// 删除部装正式排产计划
export function delAssemblyFormalSchedulingPlan(id) {
  return request({
    url: '/sales/assemblyFormalSchedulingPlan/' + id,
    method: 'delete'
  })
}
